package com.ruoyi.booking.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约管理对象 booking
 * 
 * @author ruoyi
 * @date 2024-10-16
 */
public class Booking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long bookingId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 房东名 */
    @Excel(name = "房东名")
    private String landlordName;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bookingAt;

    /**  */
    private Long isDeleted;

    public void setBookingId(Long bookingId) 
    {
        this.bookingId = bookingId;
    }

    public Long getBookingId() 
    {
        return bookingId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setLandlordName(String landlordName) 
    {
        this.landlordName = landlordName;
    }

    public String getLandlordName() 
    {
        return landlordName;
    }
    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setBookingAt(Date bookingAt) 
    {
        this.bookingAt = bookingAt;
    }

    public Date getBookingAt() 
    {
        return bookingAt;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookingId", getBookingId())
            .append("userName", getUserName())
            .append("landlordName", getLandlordName())
            .append("roomNumber", getRoomNumber())
            .append("createdAt", getCreatedAt())
            .append("bookingAt", getBookingAt())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
